package com.llmcu.source.javase.objectoriented.keywords.staticblock;

/**
 * 测试静态代码块
 *
 * @author liuling
 * @date 2024/10/7 0:35
 */
public class TestStaticBlock {
    static {
        System.out.println("执行静态代码块！！");
    }

    {
        System.out.println("执行动态代码块~~");
    }

    public TestStaticBlock() {
        System.out.println("执行一次无参构造方法");
    }

    public static void main(String[] args) {
        System.out.println("执行main方法。。。");
        new TestStaticBlock();
        new TestStaticBlock();
        new TestStaticBlock();
    }
}
